package cn.rcth.base.enums;

//枚举工具类
public enum ErrorCode {
    REGISTER_USERNAME_ERROR("无效的手机号","100"),

    REGISTER_USERNAME_EXIST_ERROR("手机号已被注册","101"),

    REGISTER_VERIFYCODE_ERROR("验证码错误","102"),

    REGISTER_VERIFYCODE_INSUFFICIENT_QUANTITY_ERROR("验证码发送失败,请联系管理员","103"),

    REGISTER_VERIFYCODE_EXPIRED_ERROR("验证码已过期请重新发送","104"),


    REGISTER_YICHAN_PASSWORD("您的账号已被禁用,请联系客服","105");


    private String msg;
    private String code;

    private ErrorCode(String msg, String code){
        this.msg=msg;
        this.code=code;
    }

    public String getErrorMsg(){
        return this.getMsg()+"["+this.getCode()+"]";
    }
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
